<script src="includes/js/tiny_mce/tiny_mce.js" type="text/javascript"></script>
<script src="includes/js/editor.js" type="text/javascript"></script>

<div class="wrap">
<table width="100%" height="100%" cellpadding="0" cellspacing="0">
	<tr>
	<td width="54px" height="43px" class="fr_lefttop"></td>
	<td height="43px" class="fr_centertop" ></td>
	<td width="48px" height="43px" class="fr_righttop"></td>
	</tr>
	<tr>
	<td width="54px" class="fr_leftmiddle" >&nbsp;</td>
	<td class="fr_centermiddle">
{if $smarty.cookies.message != null}
	<div id="ajaxResponse1" class="ajaxResponse fade" style="display:block">{$smarty.cookies.message}</div>
{/if}
<h2>{t}Edit News{/t}</h2>
<form name="editnews" id="editnews" enctype="multipart/form-data" method="post" action="?mod={$smarty.get.mod}&sub1={$smarty.get.sub1}" >
	<input type="hidden" name="act" value="editnews" />
	<input type="hidden" name="news_id" value="{$smarty.get.id}" />
	<table class="editform" width="100%" cellspacing="2" cellpadding="5">
		<tr>
			<th width="33%" scope="row" valign="top">
			<label for="news_title">{t}News title:{/t}</label></th>
			<td width="67%">
			<input name="news_title" id="news_title" type="text" value="{$NEWS->news_title}" size="50" /></td>
		</tr>
		<tr>
			<th width="33%" valign="middle">
			{t}Image:{/t} :</th>
			<td width="67%">
			<input type="file" name="news_image" />
            </td>
		</tr>
        <tr>
			<th width="33%" scope="row" valign="middle">
			</th>
			<td width="67%">
            <img src="{$PATH}{$NEWS->news_image}" />
            </td>
		</tr>
		<tr>
			<th scope="row" valign="top">
			<label for="news_content">{t}News short:{/t}</label></th>
			<td><textarea name="news_short" id="news_short" rows="5" cols="10" style="width: 100%">{$NEWS->news_short}</textarea></td>
		</tr>
		<tr>
			<th scope="row" valign="top">
			<label for="news_content">{t}News content:{/t}</label></th>
			<td><textarea name="news_content" id="news_content" rows="15" cols="10" style="width: 100%">{$NEWS->news_content}</textarea></td>
		</tr>
        <tr>
			<th scope="row" valign="top">
			<label for="news_content">{t}Tag:{/t}</label></th>
			<td><textarea name="tags" class="NOTanEditor" cols="80" rows="10" id="tags">{$NEWS->tags}</textarea></td>
		</tr>
	</table>
	<p class="submit" align = "right">
		<input type="submit" name="submit" value="{t escape=no}Update News &raquo;{/t}" />
	</p>
</form>
</td>
	<td width="48px" class="fr_rightmiddle"></td>
	</tr>
	<tr>
	<td width="54px" height="60px" class="fr_leftbot" ></td>
	<td height="60px" class="fr_centerbot"></td>
	<td width="48px" height="60px" class="fr_rightbot" ></td>
	</tr>
</table>
</div>